//
// Created by lfm on 2025/3/27.
//

#ifndef HOMEWORK2_TIME_H
#define HOMEWORK2_TIME_H


class Time
{
private:
    int hour;
    int minute;
    int second;

public:
    Time(int h = 0, int m = 0, int s = 0);
    void print_time();
    void update1();
    Time operator+(int t);
    void update_minus1();
    Time operator-(int t);
};


#endif //HOMEWORK2_TIME_H
